package db;

import com.zaxxer.hikari.HikariConfig;

public class DbConfigUtil {

    public static HikariConfig getHikariConfig() {
        HikariConfig config = new HikariConfig();
        config.setJdbcUrl("jdbc:oracle:thin:@192.168.86.131:1521:W11DEMO");
        config.setUsername("");
        config.setPassword("");
        config.setDriverClassName("oracle.jdbc.driver.OracleDriver");

        // 连接池配置
        config.setMaximumPoolSize(2);
        config.setMinimumIdle(2);
        config.setConnectionTimeout(30000);
        config.setIdleTimeout(600000);
        config.setMaxLifetime(1800000);
        return config;
    }
}
